package com.gc.mapper;

import com.gc.entity.Cart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yuyingying
 * @since 2024-09-05
 */
public interface CartMapper extends BaseMapper<Cart> {
    @Select("select cart.* , product.id as qid,pname,price,price_old,photo from cart," +
            "product where cart.pid = product.id and desk_id = ${deskId}")
    List<Cart> getList(Cart cart);
}
